import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
//此路由为公用路由，可以自己建新路由防止混乱
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  mode:'hash',
  routes: [
    // {
    //   path:'/',
    //   component:HomeView
    // },
    {
      // 首页
      path: '/home',
      component: HomeView
    },
    {
      path:'/home/detail',
      component:()=>import('../pages/policy/app.vue')
    },
    {
      path:"/",
      component:()=>import('../components/ZerothPage.vue'),
    },
    {
      path:"/FirstPage",
      component:()=>import('../components/FirstPage.vue'),
    },
    {
      path:"/FirstPage/junren",
      component:()=>import('../components/Register.vue'),
    },
    {
      path:"/FirstPage/shetuan",
      component:()=>import('../components/Register.vue'),
    },
    {
      path:"/FirstPage/putongren",
      component:()=>import('../components/Register.vue'),
    },
    {
      path:"/Login",
      component:()=>import('../components/Login.vue')
    },
    {
      path:'/:path(.*)',
      component:()=>import('../components/ZerothPage.vue'),
    }
  ]
})

export default router
